package com.szr.leex.po.user;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.szr.leex.po.base.Auditing;

import lombok.Data;

/**
 * 角色表
 * Created by WangChen on 2018/10/12 23:55.
 */
@Entity
@Table(name = "role")
@Data
public class Role extends Auditing<String>{

    private String name;//角色名称

    @Column(length = 32/*, unique = true*/)
    private String code;//角色code, 同一个父角色下的code唯一

    private String description;//描述

    private String parentId;//父级角色id

}
